<?php
/**
 * Created by PhpStorm.
 * User: ownfi
 * Date: 2017-04-01
 * Time: 14:02
 */

namespace App\Common\Constant;


class ParamsValue
{
    const TEST = 0;

    /**
     * 订单类型
     */
    const ORDER_TYPE_OFFER = 1;
    const ORDER_TYPE_PRICE = 2;

    /**
     * 系统用户类型
     */
    const USER_TYPE_MERCHANT = 1;
    const USER_TYPE_MASTER = 2;

    /**
     * 商家用户类型
     */
    const MERCHANT_TYPE_ECOMMERCE = 1;
    const MERCHANT_TYPE_LOGISTICS = 2;
    const MERCHANT_TYPE_PERSON = 3;

    /**
     * 师傅停单类型
     */
    const DISABLE_FOREVER = 1;
    const DISABLE_TEMPORARY = 2;

    /**
     * 商家状态
     */
    const MERCHANT_STATUS_NORMAL = 1;
    const MERCHANT_STATUS_DISABLE = 0;

    /**
     * 师傅状态
     */
    const USER_STATUS_NORMAL = 1;
    const USER_STATUS_STOP = 2;
    const USER_STATUS_REVIEW = 3;
    const USER_STATUS_REFUSE = 4;

    /**
     * 服务类目
     */
    const SERVICE_CATEGORY_FURNITURE = 1;

    /*
     * 商家端服务类型
     */
    const MERCHANT_SERVICE_TYPE_DELIVERY_INSTALL = 1;
    const MERCHANT_SERVICE_TYPE_INSTALL = 2;
    const MERCHANT_SERVICE_TYPE_REPAIR = 3;
    const MERCHANT_SERVICE_TYPE_DELIVERY = 4;
    const MERCHANT_SERVICE_TYPE_PACK_RETURN = 5;

    /**
     * 服务类型
     */
    const SERVICE_TYPE_DELIVERY = 1;
    const SERVICE_TYPE_DELIVERY_HOME = 101;
    const SERVICE_TYPE_DELIVERY_STOCK = 102;
    const SERVICE_TYPE_CARRY = 4;
    const SERVICE_TYPE_CARRY_MAN = 401;
    const SERVICE_TYPE_CARRY_MACHINE = 402;
    const SERVICE_TYPE_INSTALL = 2;
    const SERVICE_TYPE_INSTALL_CABINET = 201;
    const SERVICE_TYPE_INSTALL_BED = 202;
    const SERVICE_TYPE_INSTALL_DESK = 203;
    const SERVICE_TYPE_INSTALL_TEAPOY = 204;
    const SERVICE_TYPE_INSTALL_SHELF = 205;
    const SERVICE_TYPE_INSTALL_SOFA = 206;
    const SERVICE_TYPE_INSTALL_SCREEN = 207;
    const SERVICE_TYPE_INSTALL_OFFICE = 208;
    const SERVICE_TYPE_REPAIR = 3;
    const SERVICE_TYPE_REPAIR_PANEL = 301;
    const SERVICE_TYPE_REPAIR_WOOD = 302;
    const SERVICE_TYPE_REPAIR_OFFICE = 303;
    const SERVICE_TYPE_REPAIR_MARBLE = 304;
    const SERVICE_TYPE_REPAIR_LEATHER = 305;
    const SERVICE_TYPE_REPAIR_SOFA_LEATHER = 306;
    const SERVICE_TYPE_REPAIR_SCRATCH_REPAIR = 307;
    const SERVICE_TYPE_REPAIR_SPLIT_JOINT = 308;
    const SERVICE_TYPE_REPAIR_BEAUTIFUL = 309;

    /**
     * 额外服务
     */
    const SERVICE_EXTRA_FINISH_IN_24 = 24;
    const SERVICE_EXTRA_FINISH_IN_48 = 48;
    const SERVICE_EXTRA_NOTHING_FEE_40 = 40;
    const SERVICE_EXTRA_NOTHING_FEE_50 = 50;
    const SERVICE_EXTRA_NOTHING_FEE_60 = 60;
    const SERVICE_EXTRA_REPAIR_FREE_3 = 3;
    const SERVICE_EXTRA_REPAIR_FREE_6 = 6;
    const SERVICE_EXTRA_FLOOR_FREE_3 = 3;
    const SERVICE_EXTRA_FLOOR_FREE_5 = 5;
    const SERVICE_EXTRA_FLOOR_FREE_7 = 7;
    const SERVICE_EXTRA_CARRY_FEE_10 = 10;
    const SERVICE_EXTRA_CARRY_FEE_15 = 15;
    const SERVICE_EXTRA_CARRY_FEE_20 = 20;
    const SERVICE_EXTRA_AGAIN_FEE_50 = 50;
    const SERVICE_EXTRA_AGAIN_FEE_80 = 80;
    const SERVICE_EXTRA_TMALL_EXAMINE_NO = 0;
    const SERVICE_EXTRA_TMALL_EXAMINE_YES = 1;
    const SERVICE_EXTRA_STORAGE_NO = 0;
    const SERVICE_EXTRA_STORAGE_YES = 1;
    const SERVICE_EXTRA_MOVE_FREE_NO = 0;
    const SERVICE_EXTRA_MOVE_FREE_YES = 1;

    /**
     * 质保金订单类型
     */
    const MASTER_FUND_TYPE_PAY = 1;
    const MASTER_FUND_TYPE_RETURN = 2;

    /**
     * 质保金订单状态
     */
    const MASTER_FUND_UNPAID = 0;
    const MASTER_FUND_PAID = 1;
    const MASTER_FUND_WAITING = 2;
    const MASTER_FUND_PASS = 3;
    const MASTER_FUND_REFUSE = 4;

    /**
     * 提现申请状态
     */
    const MASTER_CASH_REVIEW = 0;
    const MASTER_CASH_PASS = 1;
    const MASTER_CASH_REFUSE = 2;
    const MASTER_CASH_ALIPAY_FAIL = 3;

    /**
     * 支付方式
     */
    const PAY_METHOD_WEIXIN = 'wxpay';
    const PAY_METHOD_ALIPAY = 'alipay';
    const PAY_METHOD_UNIONPAY = 'unionpay';
    const PAY_METHOD_BALANCE = 'balance';

    /**
     * 职业类型
     */
    const FULL_TIME_JOB = 1;
    const PART_TIME_JOB = 2;

    /**
     * 星期
     */
    const WEEK_MONDAY = 1;
    const WEEK_TUESDAY = 2;
    const WEEK_WEDNESDAY = 3;
    const WEEK_THURSDAY = 4;
    const WEEK_FRIDAY = 5;
    const WEEK_SATURDAY = 6;
    const WEEK_SUNDAY = 7;

    /**
     * 上午/下午
     */
    const AM = 'am';
    const PM = 'pm';

    /**
     * 小时段
     */
    const HOURS_PERIOD_8 = 8;
    const HOURS_PERIOD_10 = 10;
    const HOURS_PERIOD_12 = 12;
    const HOURS_PERIOD_14 = 14;
    const HOURS_PERIOD_16 = 16;
    const HOURS_PERIOD_18 = 18;

    /**
     * 小时
     */
    const HOUR_0 = -1;
    const HOUR_1 = 1;
    const HOUR_2 = 2;
    const HOUR_3 = 3;
    const HOUR_4 = 4;
    const HOUR_5 = 5;
    const HOUR_6 = 6;
    const HOUR_7 = 7;
    const HOUR_8 = 8;
    const HOUR_9 = 9;
    const HOUR_10 = 10;
    const HOUR_11 = 11;
    const HOUR_12 = 12;
    const HOUR_13 = 13;
    const HOUR_14 = 14;
    const HOUR_15 = 15;
    const HOUR_16 = 16;
    const HOUR_17 = 17;
    const HOUR_18 = 18;
    const HOUR_19 = 19;
    const HOUR_20 = 20;
    const HOUR_21 = 21;
    const HOUR_22 = 22;
    const HOUR_23 = 23;

    /**
     * 电梯/步梯
     */
    const ELEVATOR = 1;
    const STAIRS = 2;

    /**
     * 货品类目
     */
    const GOODS_CATEGORY_CABINET = 1;
    const GOODS_CATEGORY_BED = 2;
    const GOODS_CATEGORY_MATTRESS = 3;
    const GOODS_CATEGORY_DESK= 4;
    const GOODS_CATEGORY_TEAPOY = 5;
    const GOODS_CATEGORY_SHELF = 6;
    const GOODS_CATEGORY_SOFA = 7;
    const GOODS_CATEGORY_SEAT = 8;
    const GOODS_CATEGORY_SCREEN = 9;
    const GOODS_CATEGORY_PLATFORM = 10;
    const GOODS_CATEGORY_MIRROR = 11;
    const GOODS_CATEGORY_OFFICE = 12;
    const GOODS_CATEGORY_OTHER= 13;

    /**
     * 对师傅的雇佣状态
     */
    const OFFER_STATUS_WAITING = 0;
    const OFFER_STATUS_APPOINTING = 1;
    const OFFER_STATUS_EMPLOYED = 2;
    const OFFER_STATUS_REFUSE = 3;

    /*
     * 订单在商家端状态
     */
    const ORDER_MERCHANT_STATUS_WAITING = 1;
    const ORDER_MERCHANT_STATUS_OFFERING = 2;
    const ORDER_MERCHANT_STATUS_APPOINTING = 3;
    const ORDER_MERCHANT_STATUS_PAID = 4;
    const ORDER_MERCHANT_STATUS_SERVING = 5;
    const ORDER_MERCHANT_STATUS_FINISHED = 6;
    const ORDER_MERCHANT_STATUS_SUCCESS = 7;

    /*
     * 订单在师傅端状态
     */
    const ORDER_MASTER_STATUS_WAITING = 0;
    const ORDER_MASTER_STATUS_SERVING = 1;
    const ORDER_MASTER_STATUS_APPOINTED = 2;
    const ORDER_MASTER_STATUS_LOGISTICS_OK = 3;
    const ORDER_MASTER_STATUS_LOGISTICS_FAILED = 4;
    const ORDER_MASTER_STATUS_FINISHED = 5;
    const ORDER_MASTER_STATUS_SUCCESS = 6;

    /*
     * 订单异常状态
     */
    const ORDER_EXCEPT_NORMAL = 0;
    const ORDER_EXCEPT_CANCELED = 1;
    const ORDER_EXCEPT_REFUNDED = 2;
    const ORDER_EXCEPT_ARBITRATED = 3;

    /*
     * 订单退款类型
     */
    const ORDER_REFUND_FULL = 1;
    const ORDER_REFUND_PART = 2;

    /*
     * 订单退款状态
     */
    const ORDER_REFUND_NORMAL = 0;
    const ORDER_REFUND_REFUNDING = 1;
    const ORDER_REFUND_REFUSE = 2;
    const ORDER_REFUND_RETURN_FULL = 3;
    const ORDER_REFUND_RETURN_PART = 4;

    /**
     * 订单退款结果
     */
    const ORDER_REFUND_RESULT_AGREE = 1;
    const ORDER_REFUND_RESULT_DISAGREE = 2;

    /*
     * 订单仲裁状态
     */
    const ORDER_ARBITRATE_NORMAL = 0;
    const ORDER_ARBITRATE_ARBITRATING = 1;
    const ORDER_ARBITRATE_REFUSE = 2;
    const ORDER_ARBITRATE_RETURN_FULL = 3;
    const ORDER_ARBITRATE_RETURN_PART = 4;

    /**
     * 订单仲裁结果
     */
    const ORDER_ARBITRATE_RESULT_AGREE_FULL = 1;
    const ORDER_ARBITRATE_RESULT_AGREE_PART = 2;
    const ORDER_ARBITRATE_RESULT_DISAGREE = 3;

    /*
     * 订单评价状态
     */
    const ORDER_EVALUATE_NOTYET = 0;
    const ORDER_EVALUATE_ALREADY = 1;

    /**
     * 订单评价类型
     */
    const ORDER_EVALUATE_MAKE = 0;
    const ORDER_EVALUATE_AUTO = 1;

    /**
     * 订单服务评价
     */
    const ORDER_EVALUATE_HIGH = 1;
    const ORDER_EVALUATE_MEDIUM = 2;
    const ORDER_EVALUATE_LOW = 3;


    /**
     * 交易流水收入支出方向
     * @var array
     */
    const TRADE_DIRECTION_IN = 'in';
    const TRADE_DIRECTION_OUT = 'out';

    /**
     * 交易流水支付来源
     */
    const  TRADE_SOURCE_BALANCE = 1;
    const TRADE_SOURCE_ONLINE = 2;
    const TRADE_SOURCE_WEIXIN = 3;
    const TRADE_SOURCE_ALIPAY = 4;
    const TRADE_SOURCE_UNIONPAY = 5;
    const TRADE_SOURCE_SYSTEM = 6;

    /**
     * 交易类型
     */
    const TRADE_TYPE_ASSURE = 1;
    const TRADE_TYPE_ORDER = 2;
    const TRADE_TYPE_CASH = 3;
    const TRADE_TYPE_REFUND = 4;
    const TRADE_TYPE_PUNISH = 5;
    const TRADE_TYPE_RETURN_ASSURE = 6;

    /**
     * 商家交易类型MERCHANT_TRADE_RECHARGE=>'充值',
     */
    const MERCHANT_TRADE_TYPE_RECHARGE = 1;
    const MERCHANT_TRADE_TYPE_ORDER = 2;
    const MERCHANT_TRADE_TYPE_CANCEL = 3;
    const MERCHANT_TRADE_TYPE_FILL = 4;
    const MERCHANT_TRADE_TYPE_REFUND = 5;
    const MERCHANT_TRADE_TYPE_BATCH_ORDER = 6;

    /**
     * 交易状态
     */
    const TRADE_STATUS_SUCCESS = 1;
    const TRADE_STATUS_FAIL = 0;
    const TRADE_STATUS_ERROR = 2;
    const TRADE_STATUS_WAITING = 3;

    /**
     * 一般订单状态
     */
    const ORDER_STATUS_UNPAID = 0;
    const ORDER_STATUS_PAID = 1;

    /**
     * 已到货
     */
    const LOGISTICS_STATUS_NOSEND = 0;
    const LOGISTICS_STATUS_SENDED = 1;
    const LOGISTICS_STATUS_ARRIVED = 2;

    /**
     * 投诉类别，师傅服务不诚信
     */
    const COMPLAIN_CATEGORY_PROMISS = 1;
    const COMPLAIN_CATEGORY_STANDARD = 2;

    /**
     * 投诉子类别，师傅服务不规范
     */
    const COMPLAIN_SUBCATEGORY_OFFLINE = 1;
    const COMPLAIN_SUBCATEGORY_REFUSE = 2;
    const COMPLAIN_SUBCATEGORY_NOTFOLLOW_DOORTIME = 3;
    const COMPLAIN_SUBCATEGORY_RAISE_PRICE = 4;
    const COMPLAIN_SUBCATEGORY_WANT_TIP = 5;
    const COMPLAIN_SUBCATEGORY_NOTIN_48 = 6;
    const COMPLAIN_SUBCATEGORY_LEAK_PRICE = 7;
    const COMPLAIN_SUBCATEGORY_FORCE_CONFIRM = 8;
    const COMPLAIN_SUBCATEGORY_NOTFOLLOW_EXTRA = 9;
    const COMPLAIN_SUBCATEGORY_PRAISE_PHOTO = 10;
    const COMPLAIN_SUBCATEGORY_NOTIN_2 = 11;
    const COMPLAIN_SUBCATEGORY_EXCEED_48 = 12;
    const COMPLAIN_SUBCATEGORY_BADLY = 13;
    const COMPLAIN_SUBCATEGORY_NOT_CHECKUP = 14;
    const COMPLAIN_SUBCATEGORY_NOT_FEEDBACK = 15;
    const COMPLAIN_SUBCATEGORY_WANT_HELP = 16;
    const COMPLAIN_SUBCATEGORY_LOSS = 17;
    const COMPLAIN_SUBCATEGORY_BAD_SERVICE = 18;
    const COMPLAIN_SUBCATEGORY_SLANDE = 19;
    const COMPLAIN_SUBCATEGORY_NOT_SIGNFOR = 20;
    const COMPLAIN_SUBCATEGORY_LACK_PROGRESS = 21;
    const COMPLAIN_SUBCATEGORY_LACK_TMALL = 22;

    /**
     * 投诉处理状态
     */
    const COMPLAIN_STATUS_WAITING = 1;
    const COMPLAIN_STATUS_CANCEL = 2;
    const COMPLAIN_STATUS_OK = 3;
    const COMPLAIN_STATUS_FAIL = 4;

    /**
     * 投诉处理结果
     */
    const COMPLAIN_RESULT_AGREE = 1;
    const COMPLAIN_RESULT_DISAGREE = 2;

    /**
     * 退款退还方式
     */
    const REFUND_METHOD_WALLET = 1;
    const REFUND_METHOD_ORIGIN = 2;

    /**
     * 优惠券过期方式
     */
    const COUPON_VAILDTYPE_DAYS = 1;
    const COUPON_VAILDTYPE_PERIOD = 2;

    /**
     * 优惠券使用状态
     */
    const COUPON_STATUS_NOUSE = 0;
    const COUPON_STATUS_USED = 1;
    const COUPON_STATUS_EXPIRE = 2;

    /**
     * 文章分类
     */
    const ARTICLE_MERCHANT = 1;
    const ARTICLE_MASTER = 2;
    const ARTICLE_NOTICE = 3;
    const ARTICLE_OTHER = 4;
    const ARTICLE_COMPANY_NEWS = 5;
    const ARTICLE_INDUSTRY_NEWS = 6;

    /**
     * 服务评价
     */
    const EVALUATE_POSITIVE = 1;
    const EVALUATE_MODERATE = 2;
    const EVALUATE_NEGATIVE = 3;

    /**
     * 服务质量分数
     */
    const EVALUATE_QUALITY_FIRST =1;
    const EVALUATE_QUALITY_SENCOND =2;
    const EVALUATE_QUALITY_THREE =3;
    const EVALUATE_QUALITY_FOUR =4;
    const EVALUATE_QUALITY_FIRE =5;

    /**
     *服务态度分数
     */
    const EVALUATE_ATTITUDE_FIRST =1;
    const EVALUATE_ATTITUDE_SENCOND =2;
    const EVALUATE_ATTITUDE_THREE =3;
    const EVALUATE_ATTITUDE_FOUR =4;
    const EVALUATE_ATTITUDE_FIRE =5;

    /**
     * 服务时效分数
     */
    const EVALUATE_TIME_FIRST =1;
    const EVALUATE_TIME_SENCOND =2;
    const EVALUATE_TIME_THREE =3;
    const EVALUATE_TIME_FOUR =4;
    const EVALUATE_TIME_FIRE =5;

}